package cn.chiship.framework.upms.biz.user.service;

import cn.chiship.sdk.core.base.BaseResult;
import cn.chiship.sdk.framework.base.BaseService;
import cn.chiship.framework.upms.biz.user.entity.UpmsUserOrganization;
import cn.chiship.framework.upms.biz.user.entity.UpmsUserOrganizationExample;

import java.util.HashMap;

/**
 * 用户组织关联表业务接口层
 * 2021/9/27
 *
 * @author lijian
 */
public interface UpmsUserOrganizationService extends BaseService<UpmsUserOrganization, UpmsUserOrganizationExample> {
    /**
     * 分页
     *
     * @param page
     * @param limit
     * @param paramsMap
     * @return
     */
    BaseResult pageUserByOrgId(Long page, Long limit, String orgId, HashMap<String, Object> paramsMap);

    /**
     * 校验用户是否在组织下添加
     * @param userId
     * @param orgId
     * @return
     */
    BaseResult validateExist(String userId, String orgId);
}
